﻿<%@ Page Title="Giỏ hàng" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="GioHang.aspx.cs" Inherits="WebApplication1.GioHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script src="Scripts/javascript.js" type="text/javascript"></script>
    
<div style="width:580px">
<div class="ct_top">
<div class="ct_left"></div>
<div class="ct_right"></div>
<div class="ct_center"><h1>Giỏ hàng của bạn</h1></div>
</div> 
 <div class="ct_middle">
 
<div style="text-align:left">
<asp:Label ID="Lbthongbao" runat="server" ForeColor="Red" Text=""></asp:Label>
</div>
<center>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" Width="560px">
        <RowStyle ForeColor="#000066" />
        <Columns>
             <asp:TemplateField>
            <HeaderTemplate>
            <asp:CheckBox ID="chkHead" runat="server"
            onclick="changeCheckState(this)" />
            </HeaderTemplate>
            <ItemTemplate>
            <asp:CheckBox ID="chkCheckItem" runat="server" />
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ID" HeaderText="Mã sản phẩm" />
            <asp:BoundField DataField="DisplayName" HeaderText="Tên sản phẩm" />
             <asp:TemplateField HeaderText="Số lượng">
                 <ItemTemplate>
                     <asp:TextBox ID="txtSoLuong" Width="40px" runat="server" Text='<%# Bind("Quantity") %>'></asp:TextBox>
                 </ItemTemplate>
             </asp:TemplateField>
            <asp:BoundField DataField="Price" HeaderText="Đơn giá sản phẩm" />
            <asp:BoundField DataField="Total" HeaderText="Tổng thành tiền" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    </center>

    <asp:Panel ID="Panel1" runat="server">
  
<table style="width: 560px">
<div style="background-color:Silver;">
<tr>
<td colspan="3" align="right" 
style=" background-color:Silver;color:Red; font-weight:bold; font-size:14px; height: 20px;">
<div style=" float:left; color:Black; width: 436px;">Tổng: </div>
<asp:Label ID="Lbtongtien" runat="server" Text=""></asp:Label>Đ
</td>
</tr>
</div>
<tr>
<td align="left">

    <asp:ImageButton ID="ImageButton1"  ImageUrl="~/Images/xoa.gif" runat="server" 
        Height="20px" onclick="ImageButton1_Click" />

</td>
 <td>
 <div style="float:left">
    <asp:ImageButton  ID="ImageButton2"  ImageUrl="~/Images/tieptucmuahang.gif" 
         runat="server" Height="20px" onclick="ImageButton2_Click" />
      </div>
      <div style="float:right; text-align:center;">
       
              <asp:ImageButton ID="Imbcapnhat"  ImageUrl="~/Images/capnhat.gif" 
          runat="server" Height="20px" onclick="Imbcapnhat_Click" />
          </div>   
 </td> 

  <td align="right"> 
    <asp:ImageButton ID="ImageButton3"  ImageUrl="~/Images/thanhtoan.gif" 
          runat="server" Height="20px" onclick="ImageButton3_Click" />
 </td>
</tr>
</table>
  </asp:Panel>
<div style="text-align:left">
    <asp:Label ID="Lbxoa" ForeColor="Red" runat="server" Text=""></asp:Label>
</div>
<div style="text-align:right">
 <asp:Label ID="Lbthanhtoan" ForeColor="Red" runat="server" Text=""></asp:Label>
</div>

</div>
<div class="ct_bottom">
<div class="ct_left"></div>
<div class="ct_right"></div>
<div class="ct_center"></div>
</div>
</div>
</asp:Content>
